package chapter1028;

public class Hero3 {
    public void fight(Weapon weapon){
        System.out.println(
                "Hero use " + weapon.getName() + " " +
                        weapon.getAction() + " attack enemy."
        );
    }

    public void eat(Food food){
        System.out.println(
                "Hero " + food.getAction() + " " +
                        food.getName()
        );

    }
}
